import request from '@/utils/request'

// 获取开票基础信息
// memberType 1-经销商
export function getDetailByMemberIdAndType(memberId, memberType) {
  var query = {
    memberId: memberId,
    memberType: memberType
  }
  return request({
    url: '/invoice/invoiceMemberBaseInfo/getDetailByMemberIdAndType',
    method: 'get',
    params: query
  })
}

// 开票基础信息保存
export function saveInvoiceMemberBaseInfo(data) {
  return request({
    url: '/invoice/invoiceMemberBaseInfo/save',
    method: 'post',
    data: data
  })
}
